using AiQiuQuan.Sport.Model.Enums;
using System.ComponentModel.DataAnnotations;

namespace AiQiuQuan.Sport.Model.Models
{
    /// <summary>
    /// 新增用户积分记录dto
    /// </summary>
    public class BaseUserPointRecordAddDto
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        [Required(ErrorMessage = "用户ID必填")]
        public Guid UserId { get; set; }

        /// <summary>
        /// 变动类型
        /// </summary>
        [Required(ErrorMessage = "变动类型必填")]
        public UserPointChangeTypeEnum ChangeType { get; set; }

        /// <summary>
        /// 业务ID
        /// </summary>
        [Required(ErrorMessage = "业务ID必填")]
        public Guid BusinessId { get; set; }

        /// <summary>
        /// 变化积分
        /// </summary>
        [Required(ErrorMessage = "变化积分必填")]
        public int ChangePoint { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string? Remark { get; set; }
    }
}
